package ChessEngine.moveGenerator.Exceptions;
import boardData.*;

public class BoardException 
			extends Exception{

	 // Meldungstexte
	       
	 private static final String BOARD_IST_LEER =
	                "Das Uebergebene Board ist leer !!";

	 public BoardException()
	  {
	   super();
	  }

	 public BoardException( String meldung )
	  {
	   super( meldung );
	  }

	 
	  public static void ifBoardEmpty( Board board )
	         throws BoardException
	  {
	       if  (board==null )
	         {
	           throw new BoardException( BOARD_IST_LEER);
	         }
	  } 
	


}
